# -*- coding: utf-8 -*-
"""
Created on Mon Jun 14 23:15:58 2021

@author: bwh
"""
race=(float(input())/12)*1.1
racep=float(input())/12
m=int(input())*12
basis=float(input())
n=int(input())
re1=0
retep=0
re2=0
p=0
p1=0
re3=0
for i in range(m):
    retep=retep+basis/m
    re1=re1+(basis/m)+(basis-retep)*race
    if i>=n-1:
        re2=re2+(basis/m)
        re3=re3+(basis/m)+(basis-retep)*race
        p=p+((basis/m)+(basis-retep)*race)*(racep*(i-n))
re3=re3-p
print(re1)
print(re2) 
print(re3) 
print(p)      
print(re3-p)